package com.my.study.springframework.bean.factory.config;

/**
 * @author: yidujun
 * @create: 2021/06/10 11:34
 */
public interface SingletonBeanRegistry {

    /**
     * 根据benaName获取对应单例对象
     *
     * @param beanName
     * @return
     */
    Object getSingleton(String beanName);

    /**
     * 注册
     *
     * @param beanName
     * @param singletonObject
     * @date 2021/7/13 16:13
     */
    void registerSingleton(String beanName, Object singletonObject);

}
